<template>
	<el-card shadow="never" header="近7天操作记录">
		<scTable ref="table" :apiObj="apiObj" height="auto" paginationLayout="total, prev, pager, next" hideDo>
			<sc-table-column label="序号" type="index" width="80" ></sc-table-column>
			<sc-table-column label="业务名称" prop="description"></sc-table-column>
			<sc-table-column label="客户端IP" prop="clientIp"></sc-table-column>
			<sc-table-column label="结果" prop="code" align="center">
				<template #default="scope">
					<el-tag type="success" v-if="scope.row.level == 'info'">成功</el-tag>
					<el-tag type="error" v-else>失败</el-tag>
				</template>
			</sc-table-column>
			<sc-table-column label="操作时间" prop="createTime" width="150" fixed="right"></sc-table-column>
		</scTable>
	</el-card>
</template>

<script>
export default {
	data() {
		return {
			apiObj: this.$API.home.personal.logs

		}
	},
	mounted() {

	},
	methods: {}
}
</script>

<style>
</style>
